package com.marion.mzuul.controller;

import com.marion.mzuul.service.SentinelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sentinel")
public class SentinelController {

    @Autowired
    private SentinelService sentinelService;

    @GetMapping("/limit")
    public String limit(@RequestParam long uid) {
        return sentinelService.limit(uid);
    }

}
